package com.eaoa.uc.dictionary.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.eaoa.base.EABaseAction;
import com.eaoa.uc.dictionary.bo.DDictionaryItemMidifyBO;
import com.eaoa.uc.dictionary.form.DDictionaryItemForm;
import com.eaoa.vo.pub.PubDditem;

/**
 * DDictionaryItem create and Modify
 * @author zhenglun.zhou
 *
 */
public class DDictionaryItemModifyAction extends EABaseAction {

	protected ActionForward doWork(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
		DDictionaryItemForm itemform = (DDictionaryItemForm) form;		
		
		PubDditem vo = itemform.getVO();		

		DDictionaryItemMidifyBO bo = new DDictionaryItemMidifyBO(vo);
		bo.execute();
		
		return mapping.findForward("success");
	}

}